//
//  HMUserAccount.h
//  SinaWeiBo
//
//  Created by WGP on 16/4/12.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HMUserAccount : NSObject<NSCoding>

/*
{

    "access_token" = "2.00oqxoiD2thVQC404cc9e38dAOk2SE";
    "expires_in" = 157679999;       access_token的生命周期，单位是秒数。
    "remind_in" = 157679999;
    uid = 3410703750;
}
*/

@property(nonatomic,copy)NSString *access_token;
@property(nonatomic,assign)NSTimeInterval expires_in;
@property(nonatomic,copy)NSString *uid;
@property(nonatomic,strong)NSDate *expiresDate;

/**
 *  用户昵称
 */
@property(nonatomic,copy)NSString *screen_name;

/**
 *
 */
@property(nonatomic,copy)NSString *avatar_large;

+(instancetype)userAccountWithDict:(NSDictionary *)dict;

@end
